Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <form action="http://www.w3schools.com/tags/demo_form.asp" method="get" id="nameform"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> </form> <p>The button below is outside the form element, but still part of the form.</p> <button type="submit" form="nameform" value="Submit">Submit</button> <p><b>Note:</b> The form attribute does not work in IE.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_button_form by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:23:12 GMT --> </html>
Result:
Try it Yourself - © w3schools.com